home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Presen…rary 5 (Internal Edition)
/
Apple R&P Lib Internal v5.0.iso
/
6-Developer Demos
/
Developer Demos-Ed.
/
Macintosh School® CD-ROM Demo
/
Macintosh SchoolÆ CD-ROM Demo
/
card_104809.txt
< prev
next >
Wrap
Text File
|
1990-08-14
|
19KB
|
922 lines
-- card: 104809 from stack: in
-- bmap block id: 105267
-- flags: 4000
-- background id: 14423
-- name: Assignments
----- HyperTalk script -----
on openCard
setMenuItem 1091,1,"New Task"
enableMenuItem 1093,4,true
enableMenuItem 1093,5,true
enableMenuItem 1093,6,true
checkMenuItem 1093,4,true
checkMenuItem 1093,5,false
checkMenuItem 1093,6,false
put "Total Points" into card field "Weight"
end openCard
on closeCard
setMenuItem 1091,1,"New Bin"
end closeCard
on doMenu menuItem
if menuItem is "Clear" then
if the selectedField is empty then exit doMenu
lock screen
repeat with index = 1 to 3
if the number of the selectedField is index then
subtract 1 from background field "Tasks"
repeat with count1 = 1 to 4
if short name of this card is background field count1 then
add 1 to background field (count1 + 4)
end if
end repeat
repeat with count1 = (index + 1) to 3
if visible of card field count1 then
put card field count1 into card field (count1 - 1)
repeat with count2 = 1 to 5
put card field id ((count1 * 5) + count2) into card field id (((count1 - 1) * 5) + count2)
end repeat
repeat with count2 = 1 to 5
put card field id ((count1 * 5) + count2 + 15) into card field id (((count1 - 1) * 5) + count2 + 15)
end repeat
else
hide card field (count1 - 1)
repeat with count2 = 1 to 5
put empty into card field id (((count1 - 1) * 5) + count2)
end repeat
repeat with count2 = 1 to 5
put empty into card field id (((count1 - 1) * 5) + count2 + 15)
end repeat
exit repeat
end if
end repeat
if index = 3 OR count1 = 3 then
hide card field 3
repeat with count2 = 1 to 5
put empty into card field id (count2 + 15)
end repeat
repeat with count2 = 1 to 5
put empty into card field id (count2 + 30)
end repeat
end if
exit repeat
end if
end repeat
unlock screen
else if menuItem is "Total Points" then
put menuItem into card field "Weight"
checkMenuItem 1093,4,true
checkMenuItem 1093,5,false
checkMenuItem 1093,6,false
else if menuItem is "Scalar Weight" then
put menuItem into card field "Weight"
checkMenuItem 1093,4,false
checkMenuItem 1093,5,true
checkMenuItem 1093,6,false
else if menuItem is "Percentage Weight" then
put menuItem into card field "Weight"
checkMenuItem 1093,4,false
checkMenuItem 1093,5,false
checkMenuItem 1093,6,true
else pass doMenu
end doMenu
-- part 1 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=0 top=0 right=342 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
lock screen
set cursor to watch
repeat with index = 1 to the number of bg fields
put bg field index into item index of array
end repeat
go to first card of this background
repeat with index = 1 to the number of bg fields
put item index of array into bg field index
end repeat
unlock screen
set cursor to hand
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=4 top=26 right=300 bottom=358
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 3 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=126 top=56 right=106 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 4 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=198 top=56 right=106 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 5 (field)
-- low flags: 80
-- high flags: 0000
-- rect: left=270 top=56 right=106 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 6 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=107 right=122 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 7 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=123 right=138 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 8 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=126 top=139 right=154 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 9 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=126 top=155 right=170 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 10 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=126 top=171 right=186 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 11 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=107 right=122 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 12 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=123 right=138 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 13 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=198 top=139 right=154 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 14 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=198 top=155 right=170 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 15 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=198 top=171 right=186 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 16 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=107 right=122 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 17 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=123 right=138 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 18 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=270 top=139 right=154 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 19 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=270 top=155 right=170 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 20 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=270 top=171 right=186 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 21 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=205 right=220 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 22 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=221 right=236 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 23 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=237 right=252 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 24 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=253 right=268 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 25 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=126 top=269 right=284 bottom=197
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 26 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=205 right=220 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 27 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=221 right=236 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 28 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=237 right=252 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 29 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=253 right=268 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 30 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=198 top=269 right=284 bottom=269
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 31 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=205 right=220 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 32 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=221 right=236 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 33 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=237 right=252 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 34 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=253 right=268 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 35 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=270 top=269 right=284 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 65535
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 36 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=34 top=55 right=69 bottom=102
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Number of Tasks
-- part 37 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=11 top=28 right=43 bottom=26
-- title width / last selected line: 0
-- icon id / first selected line: 5068 / 5068
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Close
----- HyperTalk script -----
on mouseDown
set icon of me to "Close Box Hi"
end mouseDown
on mouseLeave
set icon of me to "Close Box"
end mouseLeave
on mouseUp
set icon of me to "Close Box"
lock screen
set cursor to watch
repeat with index = 1 to the number of bg fields
put bg field index into item index of array
end repeat
go to first card of this background
repeat with index = 1 to the number of bg fields
put item index of array into bg field index
end repeat
unlock screen with zoom close
set cursor to hand
end mouseUp
-- part 38 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=5 top=123 right=137 bottom=125
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Weight
-- part contents for card part 36
----- text -----
are 0 tasks
-- part contents for card part 3
----- text -----
Essays
-- part contents for background part 14
----- text -----
3
-- part contents for background part 15
----- text -----
1
-- part contents for background part 16
----- text -----
100.0
-- part contents for background part 61
----- text -----
92.5
-- part contents for background part 62
----- text -----
85.0
-- part contents for background part 63
----- text -----
67.5
-- part contents for background part 64
----- text -----
87.5
-- part contents for background part 65
----- text -----
52.5
-- part contents for background part 66
----- text -----
64.0
-- part contents for background part 67
----- text -----
77.5
-- part contents for background part 68
----- text -----
82.5
-- part contents for background part 13
----- text -----
13
-- part contents for card part 38
----- text -----
Total Points
-- part contents for background part 9
----- text -----
1
-- part contents for background part 10
----- text -----
0
-- part contents for card part 4
----- text -----
Task 3
-- part contents for background part 11
----- text -----
0
-- part contents for card part 5
----- text -----
Task 3
-- part contents for background part 78
----- text -----
Omit
-- part contents for background part 5
----- text -----
Assignments
-- part contents for background part 6
----- text -----
Exams
-- part contents for background part 7
----- text -----
Term 1 Mark
-- part contents for background part 8
----- text -----
Exams
-- part contents for background part 12
----- text -----
1
-- part contents for background part 17
----- text -----
25.0
-- part contents for background part 18
----- text -----
Omit
-- part contents for background part 19
----- text -----
0.0
-- part contents for background part 20
----- text -----
75.0
-- part contents for background part 21
----- text -----
Omit
-- part contents for background part 22
----- text -----
0.0
-- part contents for background part 23
----- text -----
0.0
-- part contents for background part 24
----- text -----
Omit
-- part contents for background part 25
----- text -----
0.0
-- part contents for background part 29
----- text -----
92.5
-- part contents for background part 30
----- text -----
85.0
-- part contents for background part 31
----- text -----
67.5
-- part contents for background part 32
----- text -----
87.5
-- part contents for background part 33
----- text -----
52.5
-- part contents for background part 34
----- text -----
64.0
-- part contents for background part 35
----- text -----
77.5
-- part contents for background part 36
----- text -----
82.5
-- part contents for background part 37
----- text -----
Omit
-- part contents for background part 38
----- text -----
Omit
-- part contents for background part 39
----- text -----
Omit
-- part contents for background part 40
----- text -----
Omit
-- part contents for background part 41
----- text -----
Omit
-- part contents for background part 42
----- text -----
Omit
-- part contents for background part 43
----- text -----
Omit
-- part contents for background part 44
----- text -----
Omit
-- part contents for background part 45
----- text -----
Omit
-- part contents for background part 46
----- text -----
Omit
-- part contents for background part 47
----- text -----
Omit
-- part contents for background part 48
----- text -----
Omit
-- part contents for background part 49
----- text -----
Omit
-- part contents for background part 50
----- text -----
Omit
-- part contents for background part 51
----- text -----
Omit
-- part contents for background part 52
----- text -----
Omit
-- part contents for background part 69
----- text -----
A
-- part contents for background part 70
----- text -----
A-
-- part contents for background part 71
----- text -----
C+
-- part contents for background part 72
----- text -----
A-
-- part contents for background part 73
----- text -----
D
-- part contents for background part 74
----- text -----
C
-- part contents for background part 75
----- text -----
B
-- part contents for background part 76
----- text -----
B+